﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsUpdatePkg")]
    public partial class MsUpdatePkg : BaseEntity
    {
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid UpdatePkgId { get; set; }

        [Column(TypeName = "varchar(32)")]
        public string Os { get; set; }

        [Column(TypeName = "varchar(32)")]
        public string Version { get; set; }

        [Column(TypeName = "int4")]
        public int Mode { get; set; }

        [Column(TypeName = "varchar(512)")]
        public string Url { get; set; }

        [Column(TypeName = "varchar(4000)")]
        public string Notes { get; set; }

        [Required]
        [Column(TypeName = "uuid")]
        public Guid FieldId { get; set; }

        [Column(TypeName = "varchar(500)")]
        public string MD5 { get; set; }

        [Column(TypeName = "varchar(20)")]
        public string Size { get; set; }
    }
}